<?php

use Phalcon\Loader;

require dirname(dirname(__FILE__)) . '/vendor/react/promise/src/functions.php';
require dirname(dirname(__FILE__)) . '/vendor/overtrue/wechat/src/Payment/helpers.php';
require dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/promises/src/functions_include.php';
require dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/psr7/src/functions_include.php';
require dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/guzzle/src/functions_include.php';
require dirname(dirname(__FILE__)) . '/vendor/baidu/sdk.php';
require dirname(dirname(__FILE__)) . '/vendor/aliyuncs/oss-sdk-php/autoload.php';
// require dirname(dirname(__FILE__)) . '/vendor/johnlui/aliyun-oss/src/AliyunOSS.php';

/**
 * We're a registering a set of namespaces
 */
$loader = new Loader();
$loader->registerNamespaces(
	[
		'App' => dirname(dirname(__FILE__)) . '/app/',
		'App\Models' => dirname(dirname(__FILE__)) . '/app/Models',
		'Firebase\JWT' => dirname(dirname(__FILE__)) . '/vendor/firebase/php-jwt/src',
		'Rootwork' => dirname(dirname(__FILE__)) . '/vendor/rootwork/phalcon-jwt/src',
        'Elasticsearch' => dirname(dirname(__FILE__)) . '/vendor/elasticsearch/elasticsearch/src/Elasticsearch',
        'Psr\Log' => dirname(dirname(__FILE__)) . '/vendor/psr/log/Psr/Log',
        'Psr\Http\Message' => dirname(dirname(__FILE__)) . '/vendor/psr/http-message/src',
        'GuzzleHttp\Ring' => dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/ringphp/src',
        'GuzzleHttp\Psr7' => dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/psr7/src',
        'GuzzleHttp' => dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/guzzle/src',
        'GuzzleHttp\Promise' => dirname(dirname(__FILE__)) . '/vendor/guzzlehttp/promises/src',
        'React\Promise' => dirname(dirname(__FILE__)) . '/vendor/react/promise/src',
        'EasyWeChat' => dirname(dirname(__FILE__)) . '/vendor/overtrue/wechat/src',
        'Pimple' => dirname(dirname(__FILE__)) . '/vendor/pimple/pimple/src/Pimple',
        'Monolog' => dirname(dirname(__FILE__)) . '/vendor/monolog/monolog/src/Monolog',
        'Symfony\Component\HttpFoundation' => dirname(dirname(__FILE__)) . '/vendor/symfony/http-foundation',
	]
);

$loader->register();
